<%@ Control Language="C#" ClassName="PurchaseContracts" Inherits="Dimok.Web.UI.TableControl" %>
<%@ Import Namespace="System.ComponentModel" %>
<%@ Import Namespace="Data.DataSources" %>
<script runat="server">
	public int StatusID { set { ds.StatusID = value; } }
	public void StatusIDRemove() { ds.StatusIDRemove(); }
	public int ContractHolderID { set { ds.ContractHolderID = value; } }
	public void ContractHolderIDRemove() { ds.ContractHolderIDRemove(); }
	public int BatchID { set { ds.BatchID = value; } }
	public void BatchIDRemove() { ds.BatchIDRemove(); }
</script>

<asp:UpdatePanel ID="pnlPurchaseContracts" UpdateMode="Always" runat="server">
	<ContentTemplate>
		<UI:GridViewEx ID="grv" runat="server" AutoGenerateColumns="false" DataSourceID="ds"
			ShowFooter="false" AllowEdit="false" ShowDelete="false" AllowSorting="True"
			EnableViewState="false" OnRowClick="showApplInfo(LoanID)" DataKeyNames="LoanID"
		>
				<columns>
<asp:BoundField DataField="LoanID" HeaderText="LoanID" SortExpression="LoanID"></asp:BoundField>
<asp:BoundField DataField="UsixID" HeaderText="UsixID" SortExpression="UsixID"></asp:BoundField>
<asp:BoundField DataField="U" HeaderText="U" SortExpression="U"></asp:BoundField>
<asp:BoundField DataField="ContractHolder" HeaderText="Contract Holder" SortExpression="ContractHolder"></asp:BoundField>
<asp:BoundField DataField="PurchaseBatchID" HeaderText='<span title="Purchase Batch ID">BID</span>' HtmlEncode="false" SortExpression="PurchaseBatchID"></asp:BoundField>
<asp:BoundField DataField="FirstName" HeaderText="First Name" SortExpression="FirstName"></asp:BoundField>
<asp:BoundField DataField="LastName" HeaderText="Last Name" SortExpression="LastName"></asp:BoundField>
<asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status"></asp:BoundField>
<asp:BoundField DataField="AmountFinanced" HeaderText="AF" SortExpression="AmountFinanced" DataFormatString="{0:n0}"></asp:BoundField>
<asp:BoundField DataField="CheckToDealer" HeaderText="To Dealer" SortExpression="CheckToDealer" DataFormatString="{0:n0}"></asp:BoundField>
<asp:BoundField DataField="Reserve" HeaderText="Reserve" SortExpression="Reserve" DataFormatString="{0:n0}"></asp:BoundField>
<asp:BoundField DataField="LoanTerm" HeaderText="Term" SortExpression="LoanTerm"></asp:BoundField>
<asp:BoundField DataField="APR" HeaderText="APR" SortExpression="APR"></asp:BoundField>
<asp:BoundField DataField="APRFee" HeaderText="APRFee" SortExpression="APRFee"></asp:BoundField>
<asp:BoundField DataField="OverageFee" HeaderText="OvgFee" SortExpression="OverageFee"></asp:BoundField>
<asp:BoundField DataField="OtherFeeName" HeaderText="Other Fee" SortExpression="OtherFeeName"></asp:BoundField>
<asp:BoundField DataField="OtherFeeValue" HeaderText="Other Fee($)" SortExpression="OtherFeeValue"></asp:BoundField>
<asp:BoundField DataField="RecourseMonths" HeaderText='<span title="Recource">Rec</span>' HtmlEncode="false" SortExpression="RecourseMonths"></asp:BoundField>
<asp:BoundField DataField="AddMosRecourse" HeaderText="Rec+" SortExpression="AddMosRecourse"></asp:BoundField>
<asp:BoundField DataField="GrossIncome" HeaderText="Income" SortExpression="GrossIncome"></asp:BoundField>

<asp:ImageField DataImageUrlField="Lamp_OK" HeaderText="OK!" SortExpression="OK" DataImageUrlFormatString="{0}&pic=xx" />
<asp:ImageField DataImageUrlField="Lamp_ServiceContract" HeaderText='<span title="Service Contract OK">SC</span>' SortExpression="ServiceContractOK" DataImageUrlFormatString="{0}&pic=x" />
<asp:ImageField DataImageUrlField="Lamp_Miles" HeaderText='<span title="Miles Per Year OK">MPY</span>' SortExpression="MilesPerYearOK" DataImageUrlFormatString="{0}&pic=x" />
<asp:ImageField DataImageUrlField="Lamp_ModelAge" HeaderText="Age" SortExpression="ModelAgeOK" DataImageUrlFormatString="{0}&pic=x" />
<asp:ImageField DataImageUrlField="Lamp_Term" HeaderText='<span title="Loan Term OK">LT</span>' SortExpression="LoanTermOK" DataImageUrlFormatString="{0}&pic=x" />
<asp:ImageField DataImageUrlField="Lamp_DP" HeaderText='<span title="Down Payment">DP</span>' SortExpression="DownPaymentOK" DataImageUrlFormatString="{0}&pic=x"/>
<asp:ImageField DataImageUrlField="Lamp_PTI" HeaderText="PTI" SortExpression="PTI_OK" DataImageUrlFormatString="{0}&pic=x" />
<asp:ImageField DataImageUrlField="Lamp_DTI" HeaderText="DTI" SortExpression="DTI_OK" DataImageUrlFormatString="{0}&pic=x" />
<asp:ImageField DataImageUrlField="Lamp_ResTime" HeaderText="Res" SortExpression="ResidenceTimeOK" DataImageUrlFormatString="{0}&pic=x" />
<asp:ImageField DataImageUrlField="Lamp_JobTime" HeaderText="Job" SortExpression="JobTimeOK" DataImageUrlFormatString="{0}&pic=x" />
<asp:ImageField DataImageUrlField="Lamp_OpenUnits" HeaderText='<span title="Open Units OK">OUs</span>' SortExpression="OpenUnitsOK" DataImageUrlFormatString="{0}&pic=x"
 />
</columns>
		</UI:GridViewEx>
	</ContentTemplate>
</asp:UpdatePanel>
<!--
<asp:ImageField DataImageUrlField="Lamp_APR" HeaderText="APR OK" SortExpression="APR_OK" DataImageUrlFormatString="{0}&pic=x"/>
-->
<DS:PurchaseContractsDataSource ID="ds" runat="server">
</DS:PurchaseContractsDataSource>
